﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FX.CC.Andon.Entity.Service
{
    [Serializable]
    public class KanbanWrapper
    {
        //WS.WSName, Eq.EqCode, Eq.EqName, EType.ETypeName, Detail.DetailName,  Rec.StartTime
        public Guid EventID { get; set; }

        public string WSName { get; set; }

        public string LineName { get; set; }

        public string EqCode { get; set; }

        public string EqName { get; set; }

        public string ETypeName { get; set; }

        public string DetailName { get; set; }

        public DateTime StartTime { get; set; }

        public decimal TotalTime { get; set; }

        public string OpUserName { get; set; }

        public string OpMobileNo { get; set; }

        public string SignUserName { get; set; }

        public decimal RspTime { get; set; }

        public int ReduceMin { get; set; }

        private string _PreviewTxt;
        public string PreviewTxt {
            get
            {
                return "异常触发人员：" + OpUserName + "    联系电话：" + (string.IsNullOrEmpty(OpMobileNo) ? "无号码" :  OpMobileNo) +
                    "    " +(string.IsNullOrEmpty(this.SignUserName) ? "尚无人员签到处理此异常" : ("签到处理人员：" + this.SignUserName + "    响应时间：" + RspTime.ToString()+"分钟") );
            }
            set {
                _PreviewTxt = value;
            }
        }
    }

    [Serializable]
    public class TaskKanbanWrapper
    {
        //WS.WSName, Eq.EqCode, Eq.EqName, EType.ETypeName, Detail.DetailName,  Rec.StartTime
        public Guid TaskTID { get; set; }

        public Guid FlowID { get; set; }

        public string WSName { get; set; }

        public string LineName { get; set; }

        public string EqCode { get; set; }

        public string EqName { get; set; }

        public string PrdCode { get; set; }

        public string PrdName { get; set; }

        public int PlanQty { get; set; }

        public int ConfirmQty { get; set; }

        public DateTime StartTime { get; set; }

        public string Rate { get; set; }

        public int ProcessIdx { get; set; }
    }
}
